package com.wash.shoes.common.config;


import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

import javax.annotation.PostConstruct;

@Data
@Log4j2
@Configuration
//@PropertySource("classpath:WashMachine.properties")
@PropertySource(value = "classpath:WashMachine.properties", encoding = "GBK")
public class MachineConfig {

    @Value("${machine.url}")
    private String url;

    @Value("${machine.qudaoid}")
    private String qudaoid;

    @Value("${machine.authorization}")
    private String authorization;

    @Value("${machine.name}")
    private String name;

}
